package metalink.admin;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

import java.sql.*;

import java.util.ArrayList;

import model.admin.QBColumnName;
import myutil.Connect;

import com.opensymphony.xwork2.ActionSupport;
public class QueryBuilder_submit extends ActionSupport{
	
	HttpServletRequest req;
	HttpServletResponse res;
	
	public String execute(){
		try{
			
			
			res.setContentType("text/html");
			PrintWriter out=res.getWriter();
			String[] str=req.getParameterValues("target");
			if(str.length != 0){
				for(int i=0; i<str.length; i++){
					System.out.println("You have selected "+str[i]);
				}
			}
			else{
				System.out.println("You have not selected any thing");
			}
			return SUCCESS;
		}	catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return ERROR;
		}
	}
	/*
	public void init(ServletConfig sc) throws ServletException//, IOException
	{
		System.out.println("Into Init of test1");
		super.init(sc);
	}
	
	public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException{
		
	}
	public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException{
	doPost(req,res);
	System.out.println(req.getMethod());
	}
	*/

}
